/*
 * @Author: Sam
 * @Date: 2020-11-10 20:50:40
 * @LastEditTime: 2021-03-24 09:25:51
 * @LastEditors: Sam
 * @Description: 
 * @FilePath: \resourcesf:\thework\tofba-client\src\api\endpoint.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
import request from '@/utils/request'



// 查询海空运单列表
export function listPage (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/listPage',
    method: 'post',
    data,
  })
}
// 查询海空运单列表
export function initHdWaybillState (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/initHdWaybillState',
    method: 'post',
    params: data,
  })
}

// 显示追踪标签信息
export function viewWaybillHdWaybillSubs (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/viewWaybillHdWaybillSubs',
    method: 'post',
    params: data,
  })
}
// 删除 运单
export function deleteWaybillHdById (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/deleteWaybillHdById',
    method: 'post',
    params: data,
  })
}
// 推送 运单
export function againSendExpressLabel (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/againSendExpressLabel',
    method: 'post',
    params: data,
  })
}
// 推送 运单
export function exportTrackNumber (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/exportTrackNumber',
    method: 'post',
    params: data,
  })
}
// 通过ID查询末端数据(编辑)
export function getWaybillHdById (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/getWaybillHdById',
    method: 'post',
    params: data,
  })
}
// 通过ID查询末端数据（详情）
export function getHdWaybillHdDetail (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/getHdWaybillHdDetail',
    method: 'post',
    params: data,
  })
}

// 初始化查询目的地仓库信息（通过国家）
export function initShippingfbaStockBycountry (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/initShippingfbaStockBycountry',
    method: 'post',
    params: data,
  })
}


// 保存末端运单数据（清关+派送；清关；卡车派送）
export function saveWaybillHd (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/saveWaybillHd',
    method: 'post',
    data,
  })
}
// 保存末端运单数据（快递派送）
export function saveExpressDispatch (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/saveExpressDispatch',
    method: 'post',
    data,
  })
}
// 保存子单尺寸信息和打印
export function saveSubDimensAndPrint (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/saveSubDimensAndPrint',
    method: 'post',
    data,
    //params: data,
  })
}
// 上传文件（箱单发票；提单；派送指引；ISF文件）
export function uploadAccessorys (data) {
  return request({
    url: '/seaair/seaairwaybillextremes/uploadAccessorys',
    method: 'post',
    data,
  })
}

